<template>
  <a-modal destroyOnClose title="" :footer="null" :visible="visible" :width="617" @cancel="cancelModal(false)" @ok="cancelModal(true)" class="cssModal">
    <h1>{{title}}</h1>
    <slot></slot>
  </a-modal>
</template>

<script>
export default {
  name: 'cssModal',
  props: ['visible', 'title'],
  data () {
    return {
    }
  },
  computed: {
  },
  methods: {
    cancelModal () {
      this.$emit('cancelModal')
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '../../styles/var.styl'
.cssModal
  h1
    font-size 14pt
    text-align center
</style>
<style lang="stylus">
@import '../../styles/var.styl'
.cssModal
  :global(.ant-modal-content)
    border-radius 24px
  :global(.anticon)
    color registBlue
</style>
